#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main() {
    vector<int> a;
    int non;
    cin >> non;
    int tmp;
    while(cin >> tmp){
        a.push_back(tmp);
        if (cin.get() == '\n') break;
    }
    sort(a.begin(), a.end());
    for(int i = 0;i < non-1;i++)  cout << a[i] << ",";
    cout << a[non-1];
    return 0;
}
